package test;

// class Main {
//    public static void main(String[] args) {
//        Thread[] threads = new Thread[5];
//        for (int i = 0; i < 5;) {
//            threads[i++] = new Thread("watek[" + i + "]") {
//                public void run() {
//                    System.out.println("entering" + Thread.currentThread().getName());
//                    System.out.println("debug"  + Thread.currentThread().getName());
//                }
//            };
//            threads[i - 1].start();
//        }
//        Prod.prmth2();
//    }



//    class Alien {
//    	  String invade(short ships) { return "a few"; }
//    	  String invade(short... ships) { return "many"; }
//    	}
//    	class Defender {
//    	  public static void main(String [] args) {
//    	    System.out.println(new Alien().invade((short)7));
//    	  }

//}



import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Player {
  Player() { System.out.print("p"); }
}
class CardPlayer extends Player implements Serializable {
  CardPlayer() { System.out.print("c"); }
  public static void main(String[] args){
	  
	  List l = new ArrayList();
	  l.add("a");
	  l.add("b");
	  
	  
	  
    //CardPlayer c1 = new CardPlayer();

    try {
//      FileOutputStream fos = new FileOutputStream("play.txt");
//      ObjectOutputStream os = new ObjectOutputStream(fos);
//      os.writeObject(c1);
//      os.close() ;
      FileInputStream fis = new FileInputStream("play.txt");
      ObjectInputStream is = new ObjectInputStream(fis);
      CardPlayer c2 = (CardPlayer) is.readObject();
      is.close();
    } catch (Exception x ) { }
  }
}
